package com.hps.spring.cloud.alibaba.controller;

import com.hps.spring.cloud.alibaba.client.NacosProviderClient;
import javax.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author heps
 * @since 2020/11/3 16:07
 */
@RestController
public class NacosConsumerFeignController {

  @Resource
  private NacosProviderClient nacosProviderClient;

  @GetMapping(value = "/test/hi")
  public String test() {
    return nacosProviderClient.test("Hi Feign");
  }
}
